package com.aerilys.taskboard.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class AddTaskViewPlace extends Place
{
  private String helloName;

  public AddTaskViewPlace(String token) {
      this.helloName = token;
  }

  public String getHelloName() {
      return helloName;
  }

  public static class Tokenizer implements PlaceTokenizer<AddTaskViewPlace> {
      @Override
      public String getToken(AddTaskViewPlace place) {
          return place.getHelloName();
      }

      @Override
      public AddTaskViewPlace getPlace(String token) {
          return new AddTaskViewPlace(token);
      }
  }
}
